package com.shareach.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import com.shareach.common.BaseQueryOrder;
import com.shareach.domain.BizCardDomain;

/**
 * create time：2013-1-30 下午12:17:27
 * 
 * @author retryu
 * @since JDK 1.6
 * @version 1.0 description：
 */

public interface BizCardService {
	Map<String,Object> saveOrUpdate(BizCardDomain domain);

	Long save(BizCardDomain doamin);

	void del(BizCardDomain domian);

	void update(BizCardDomain domain);

	// update by domain
	void update(BizCardDomain domain, BizCardDomain condition);

	BizCardDomain getById(Long id);

	List<BizCardDomain> getList(BizCardDomain condition);

	// load page
	Page<BizCardDomain> getPageResult(BizCardDomain domain, BaseQueryOrder order);

	BizCardDomain findOne(BizCardDomain domain);

}
